package com.aaa.project.controller;


import com.aaa.project.service.IGDepositService;
import com.aaa.util.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 保存方式 前端控制器
 * </p>
 *
 * @author zhangxuhui
 * @since 2023-02-19
 */
@RestController
@RequestMapping("/g-deposit")
public class GDepositController {

    @Resource
    private IGDepositService depositService;

    @PostMapping("getAlldeposit")
    public Result getAlldeposit(){
        return  new Result(depositService.list());
    }

}

